<div class="page-header">
  <h1>Usuarios del sistema</h1>
</div>
  <div class="pull-right">
    <%= link_to 'Nuevo usuario', new_account_path, :class => "btn btn-primary btn-small add-document" %>  
  </div>
<br>
<br>
<table class="table table-bordered table-striped">
  <tr>
    <th>Name</th>
    <th>Email</th>
    <th>Status</th>
    <th>Admin</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @accounts.each do |account| %>
  <tr>
    <td><%= account.name %></td>
    <td><%= account.email %></td>
    <td><%= account.status ?  "Si" : "No" %></td>
    <td><%= account.admin ?  "Si" : "No" %></td>
    <td><%= link_to 'Detalle', account %></td>
    <td><%= link_to 'Editar', edit_account_path(account) %></td>
    <td><%= link_to 'Eliminar', account, :confirm => '¿Está seguro?', :method => :delete %></td>
  </tr>
<% end %>
</table>
